Skip to content

Conversation

@felixbarny
Copy link
Member

@felixbarny felixbarny commented Oct 29, 2025

Previously, the full write privilege was required, now the more fine-grained create_doc privilege is enough. It still checks the permissions in the internal _bulk request again. For example, the request would fail if we used the index instead of the create op_type within the OTLPMetricsTransportAction.

Previously, the full `write` privilege was required, now the more fine-grained `create_doc` privilege is enough. It still checks the permissions in the internal _bulk request again. For example, the request would fail if we used the `index` instead of the `create` op_type within the `OTLPMetricsTransportAction`.
@felixbarny felixbarny requested a review from kkrik-es October 29, 2025 10:30
@felixbarny felixbarny self-assigned this Oct 29, 2025
@felixbarny felixbarny added the :StorageEngine/TSDB You know, for Metrics label Oct 29, 2025
@felixbarny felixbarny requested review from a team as code owners October 29, 2025 10:30
@elasticsearchmachine elasticsearchmachine added v9.3.0 Team:StorageEngine external-contributor Pull request authored by a developer outside the Elasticsearch team labels Oct 29, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@elasticsearchmachine
Copy link
Collaborator

Hi @felixbarny, I've created a changelog YAML for you.

@felixbarny felixbarny added auto-backport Automatically create backport pull requests when merged and removed >enhancement labels Oct 29, 2025
@kkrik-es
Copy link
Contributor

Is there a tracking bug for this? I wonder how you noticed.

@felixbarny
Copy link
Member Author

This came up during internal testing for the managed OTLP endpoint.

@felixbarny felixbarny merged commit a61e479 into elastic:main Oct 29, 2025
34 checks passed
@felixbarny felixbarny deleted the otlp-create-doc branch October 29, 2025 12:18
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.2

felixbarny added a commit to felixbarny/elasticsearch that referenced this pull request Oct 29, 2025
…astic#137325)

Previously, the full `write` privilege was required, now the more fine-grained `create_doc` privilege is enough. It still checks the permissions in the internal _bulk request again. For example, the request would fail if we used the `index` instead of the `create` op_type within the `OTLPMetricsTransportAction`.
elasticsearchmachine pushed a commit that referenced this pull request Oct 29, 2025
…37325) (#137332)

Previously, the full `write` privilege was required, now the more fine-grained `create_doc` privilege is enough. It still checks the permissions in the internal _bulk request again. For example, the request would fail if we used the `index` instead of the `create` op_type within the `OTLPMetricsTransportAction`.
ywangd added a commit to ywangd/elasticsearch that referenced this pull request Oct 30, 2025
Security must be explicity enabled to make tests in fips mode pass.

Relates: elastic#137325
ywangd added a commit that referenced this pull request Oct 30, 2025
Security must be explicity enabled to make tests in fips mode pass.

Relates: #137325
ywangd added a commit to ywangd/elasticsearch that referenced this pull request Oct 30, 2025
Security must be explicity enabled to make tests in fips mode pass.

Relates: elastic#137325
elasticsearchmachine pushed a commit that referenced this pull request Oct 30, 2025
Security must be explicity enabled to make tests in fips mode pass.

Relates: #137325
chrisparrinello pushed a commit to chrisparrinello/elasticsearch that referenced this pull request Nov 3, 2025
…astic#137325)

Previously, the full `write` privilege was required, now the more fine-grained `create_doc` privilege is enough. It still checks the permissions in the internal _bulk request again. For example, the request would fail if we used the `index` instead of the `create` op_type within the `OTLPMetricsTransportAction`.
chrisparrinello pushed a commit to chrisparrinello/elasticsearch that referenced this pull request Nov 3, 2025
Security must be explicity enabled to make tests in fips mode pass.

Relates: elastic#137325
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged >bug external-contributor Pull request authored by a developer outside the Elasticsearch team :StorageEngine/TSDB You know, for Metrics Team:StorageEngine v9.2.1 v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants